package classThird;

public class StudentTest {

	public static void main(String[] args) {
		
		Student s1=new Student("007","Bang",'m',40);
		Student s2=new Student("009","Rose",'f',41);
		
		System.out.println(s1.toString());
		System.out.println(s2.toString());
		System.out.println("Student Count: "+s1.count);
		
		s1.count=0;
		Student arr[]=new Student[10];
		arr[0]=new Student("007","Bang",'m',40);
		arr[1]=new Student("009","Rose",'f',41);
		System.out.printf("%s,%s,%c,%d\n",arr[0].getnumber(),arr[0].getname(),arr[0].getsex(),arr[0].getage());
		System.out.printf("%s,%s,%c,%d\n",arr[1].getnumber(),arr[1].getname(),arr[1].getsex(),arr[1].getage());
		System.out.println("Student Count: "+s1.count);

	}

}
